package User;

import Operation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:岁亮亮
 * Date:2024-01-14
 * TIME:15:31
 */
public class author extends user{
    public author(String name) {
        super(name);
        this.iooperations=new Iooperation[]{new exit(),
                                            new add(),
                                            new del(),
                                             new modify(),
                                          new check(),
                                          new show()};
    }


    public int menu(){
        System.out.println("****************");
        System.out.println("0 退出系统");
        System.out.println("1 增加图书");
        System.out.println("2 删除图书");
        System.out.println("3 修改图书");
        System.out.println("4 查找图书");
        System.out.println("5 显示图书");
        System.out.println("****************");
        Scanner scanner=new Scanner(System.in);
        System.out.println("请选择你要的内容");
        int ret=scanner.nextInt();
        return ret;
    }


}
